import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

export type ResultType = {
  /** 状态码 200成功 */
  code: number;
  /** 接口返回信息 */
  message: string;
  /** 数据 */
  data: any;
};

/** 阴阳情况饼图 */
export const yinYangPicApi = () => {
  return http.request<ResultType>("get", baseUrlApi("count/yinYangPic/"));
};

/** 近n天打卡数量统计 dayNub: 统计前几天 */
export const recordByDayLineApi = (dayNub: number) => {
  return http.request<ResultType>("get", baseUrlApi("count/recordByDayLine/" + dayNub));
};
